Skip to main content

Get Prediction File By Page ID

AutomatR.Nanonets.Activities.GetPredictionFileByPageID

The "Get Prediction File By Page ID" activity in AutomatR is part of the Nanonets OCR PREDICT activities package, allowing users to retrieve prediction results for a specific page using the Nanonets OCR model. This activity streamlines the extraction of detailed information from a page, enhancing the efficiency of OCR-related automation workflows.

Properties

NameDescription
Input
Model IDThe ID of the Nanonets OCR model used for prediction. String variables containing the Model ID.
Page IDThe ID of the page received from the asynchronous prediction endpoint. String variables containing the page ID.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Get Prediction File By Page ID" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResponseOutputs the detailed response generated by the Nanonets OCR model based on the provided page. The data type is GetPredictionFileByPageIDProperties. Variables of type GetPredictionFileByPageIDProperties to store the prediction details.

How to use:

  1. Drag and drop the "Get Prediction File By Page ID" activity onto the workflow.
  2. Configure the properties by specifying the Model ID and Page ID for the Nanonets OCR model.
  3. Optionally, configure the delay.
  4. Execute the workflow to retrieve detailed prediction results for the specified page using the Nanonets OCR model.

Example: Consider an example where the "Get Prediction File By Page ID" activity is used to retrieve prediction results for a page with the Model ID "789" and Page ID "XYZ123":

Get Prediction File By Page ID:
Model ID: "789"
Page ID: "XYZ123"
Delay: 3
Response: pagePredictionDetails

In this example, the activity retrieves detailed prediction results for the page associated with the Model ID "789" and Page ID "XYZ123" with a delay of 3 seconds. The detailed results are stored in the variable "pagePredictionDetails" of type GetPredictionFileByPageIDProperties for further handling in the workflow.